<%-- 
    Document   : addArticle
    Created on : May 17, 2012, 11:25:46 AM
    Author     : ciummo
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>


<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="/DGestWebServer/css/dgest.css"/>
        <title>Inserimento Nuovo Articolo</title>
    </head>
    
    <body>
               
        <%@ include file="../adminDialogBar.jspf" %>
        
        
        <div class="error">
            <html:errors />
        </div>
        
        <br>

        <html:form action="Article?method=submitArticle&func=new" method="POST" enctype="multipart/form-data">
             
            <table>
                
                <thead></thead>
                
                <tbody>
                    
                <caption><h2>Dettagli Articolo</h2></caption>
                    
                    <tr>
                        <th>Codice Articolo: </th>
                        <td><html:text name="ArticleActionForm" property="codArticolo" maxlength="6" /></td>
                    </tr>
                    
                    <tr> 
                        <th>Tipo di Articolo: </th>
                        <td>
                            <html:select property="tipo" >
                            <html:option value="0">Selezionare...</html:option>
                            <html:optionsCollection name="ArticleActionForm" property="listaTipi" label="title" value="title"/>
                            </html:select>
                        </td>
                    </tr>
                    
                    <tr>
                        <th>Nome: </th>
                        <td><html:text name="ArticleActionForm" property="nome"/></td>
                    </tr>                     
                    
                    
                    <tr>
                        <th>Prezzo Base: </th>
                        <td><html:text name="ArticleActionForm" property="prezzo" maxlength="10" /></td>
                    </tr>                    
 
                    <tr>
                        <th>Note: </th>
                        <td><html:text name="ArticleActionForm" property="note" /></td>
                    </tr>                        
                    
                    <tr>
                        <td></td>
                        
                        <td>
                            <html:submit>
                                Submit
                            </html:submit>
                        </td>
                    </tr>                                        
                </tbody> 
            </table>
        </html:form>
        
        <html:link page="/Article.do?method=listArticles&func=all"><img src="/DGestWebServer/images/return.png" title="Ritorna alla lista Articoli" alt="Ritorna alla lista Articoli" height="50px" width="50px"/></html:link>
        
        <%@ include file="../footBar.jspf" %>
    </body>
</html>
